package com.jxtc.enterprise.employee.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Schema(description = "微信小程序端根据订单状态查询订单信息列表所需要传递的数据")
@Getter
@Setter
@ToString
public class QueryOrderByStatusDTO {
    @Schema(description = "登录账号 1~11位，手机号 或 字母+数字组合", example = "11012341234, t1023654")
    @Size(message = "登录账号 1~11位，手机号 或 字母+数字组合", min = 1, max = 11)
    @NotBlank(message = "登录账号 1~11位，手机号 或 字母+数字组合")
    private String phone;

    @Schema(description = "公司 ID", example = "565a416545cc196d005439407b953fdd")
    private String companyId;

    @Schema(description = "订单状态标志：待付款(1), 待发货(2), 待收货(3), 待评价(4), 已完成(8), 全部(-1)，默认查询【全部】数据", example = "-1", defaultValue = "-1")
    private Integer status = -1;

    @Schema(description = "当前页码，从 1（默认值）开始", example = "1", defaultValue = "1")
    private Integer page = 1;

    @Schema(description = "每页显示的记录数，默认为 10", example = "10", defaultValue = "10")
    private Integer size = 10;
}
